package com.dx.financehy.modules.file.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <pre>
 * @描述：
 * @作者：CLD
 * @创建时间：2022-04-19 09:55
 * </pre>
 **/
@ApiModel(description = "获取访问签名DTO")
@Data
public class PresignedUrlDTO {

    @ApiModelProperty(value = "桶名")
    @NotBlank(message = "桶名不能为空")
    private String bucket;

    @ApiModelProperty(value = "key")
    @NotBlank(message = "key不能为空")
    private String key;

    @ApiModelProperty(value = "过期时间")
    @NotNull(message = "过期时间不能为空")
    private Date expiration;
}
